<ion-view view-title="宿舍管理">
    <ion-nav-buttons side="right">
        <a class="button button-clear" on-tap="vm.collect.logout()">退出</a>
    </ion-nav-buttons>
    <ion-content class="tab-background" style="background-color: white">
        <div class="sel zxcx-sel">
            <form name="search_form" novalidate  ng-submit="vm.collect.search()">
                <input type="text" placeholder="请输入..." name="" ng-model="vm.collect.inputValue" required />
                <input type="submit" value="搜索" />
            </form>
        </div>
        <div class="main" id="zscx" ng-if="!vm.collect.toggle">
            <div class="ts">住宿查询为查询个人用户，关键字可使用</div>
            <div class="gjz">姓名</div>
            <div class="gjz">学号</div>
            <div class="gjz">邮箱</div>
        </div>

        <div class="main grxxb"  id="grxx" ng-if="vm.collect.toggle">
            <div class="gr" ng-repeat="item in vm.collect.info" ui-sref="tab.studentInfo({id:item.stuId})">
                <span class="img-bg"></span>
                <div class="rightside">
                    <div class="name">{{item.name}}</div>
                    <div class="info">{{item.department}}&nbsp;{{item.speciality}}&nbsp;{{item.grade}}级</div>
                </div>
            </div>
        </div>
        <ion-infinite-scroll
                ng-if="vm.collect.moreDataCanBeLoaded()"
                on-infinite="vm.collect.loadList()">
        </ion-infinite-scroll>
    </ion-content>
</ion-view>